<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{# 判断模板 #}

{# if判断 #}
    {% if name == '欢乐马' %}
    	<p>我是欢乐马</p>
    {% else %}
        <p>我不是欢乐马</p>
    {% endif %}

</body>
</html>